<?php

namespace App\Http\Controllers\Backend\User;

use App\Http\Service\backend\upload\UploadImages;
use App\Http\Controllers\Backend\BackendController;

class UploadController extends BackendController
{

    private $uploadImages;

    public function __construct(UploadImages $uploadImages) {
        $this->uploadImages = $uploadImages;
    }

    /**
     * @author Jinfeihu
     * 
     * */
    public function index() {
        return json_encode($this->uploadImages->uploadImage($_FILES));
    }

}
